using System;
using System.Data.SqlClient;

namespace Lookstone.Data.SqlClient
{
	/// <summary>
	/// Summary description for SqlInt32Key.
	/// </summary>
	public abstract class SqlInt32Key : SqlKeyBase<int>
	{
		#region /***** Constructors *****/
		public SqlInt32Key()
			: base() { }

		public SqlInt32Key(SqlConnectionContext context, int id)
			: base(context, id) { }

		public SqlInt32Key(RowReader reader)
			: base(reader) { }
		#endregion /***** Constructors *****/

		#region //****** Methods ******//
		protected override void StoreSaveInfo(RowReader reader)
		{
			InternalID = reader.GetField<int>(0);
		}
		#endregion //****** Methods ******//
	}
}